import request from "../utils/request.js"
//用户登录
export const login = (data) => {
    return request.post('/admin/login', { data })
}

//获取用户数据
export const getdata = () => {
    return request.get('/admin/getAllAdmins')
}

//删除用户数据
export const delone = (data) => {
    return request.post('/admin/delAdmins', { data })
}

//新增用户
export const adduser = (data) => {
    return request.post('/admin/addAdmins', { data })
}